#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__title__ = ''
__author__ = 'wendy'
__mtime__ = '2017/3/5'
"""

def convertStrToDict(cookieStr):
    rtnDic = {};
    tmpStr = cookieStr.split("; ");
    for item in tmpStr:
        cookieArr = item.split("=");
        rtnDic[cookieArr[0]] = cookieArr[1];

    return rtnDic;